package edu.sctu.practice.class01.wulixia.month09_wlx.assgin02.calculate;

/**
 * Created by wulixia on 2015/10/8.
 */
public class Rational {
    public int numberx;
    public int numbery;

    public Rational(int numberx, int numbery) {
        this.numberx = numberx;
        this.numbery = numbery;
    }

    public int plus () {
        return(numberx + numbery);
    }

    public int minus() {
        return(numberx - numbery);
    }

    public int mult() {
        return(numberx * numbery);
    }

    public int divide() {
        return(numberx / numbery);
    }
}
